package com.zs.toolbox.web2j.system.core.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zs.toolbox.web2j.common.request.WtPageBodyModel;
import com.zs.toolbox.web2j.common.request.WtPageQuerySearchModel;
import com.zs.toolbox.web2j.system.core.entity.WtPostDetailEntity;
import com.zs.toolbox.web2j.system.core.response.WtPostDetailWithUserInfoEntity;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author eric.zhang
 * @since 2018-10-11
 */
public interface WtPostDetailService extends IService<WtPostDetailEntity> {

    void savePost(WtPostDetailEntity wtPostContentRequest);

    WtPostDetailWithUserInfoEntity fetchPostDetailByIdAndRead(Long id);

    void updateAddReadNumById(Long id);

    WtPageBodyModel<WtPostDetailWithUserInfoEntity> pagePost(WtPageQuerySearchModel wtPageQueryModel);
}
